package com.camemax.rabbitmq.work_mode.exchangeddl;

import com.camemax.rabbitmq.utils.ExchangeModules;
import com.rabbitmq.client.BuiltinExchangeType;

import java.util.HashMap;

// *********************
// ** @Date: 2021-06-09
// ** @Author: Camemax
// ** @Description: Create the Exchange for testing RabbitMQ in work mode. ( Optional operation.)
// *********************
public class Optional_WorkMode_CreateExchange extends ExchangeModules{
    private static final String EXCHANGE_NAME = "work-exchange";

    public static void main(String[] args) {
        new ExchangeModules().declareExchange(
                EXCHANGE_NAME,
                BuiltinExchangeType.DIRECT, // default DIRECT mode
                true,
                false,
                false,
                new HashMap<String, Object>()
        );
    }
}
